package com.dji.model;

import java.util.UUID;

/**
 * 表示无人机飞行路径中的航点
 */
public class Waypoint {
    private String id;
    private double latitude;
    private double longitude;
    private double altitude;
    private int order; // 航点顺序
    private String action; // 可选动作：HOVER, TAKE_PHOTO, RECORD_VIDEO, etc.
    private int hoverTime; // 悬停时间（秒）
    
    public Waypoint() {
        this.id = UUID.randomUUID().toString();
        this.action = "HOVER";
        this.hoverTime = 0;
    }
    
    public Waypoint(double latitude, double longitude, double altitude, int order) {
        this();
        this.latitude = latitude;
        this.longitude = longitude;
        this.altitude = altitude;
        this.order = order;
    }
    
    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getAltitude() {
        return altitude;
    }

    public void setAltitude(double altitude) {
        this.altitude = altitude;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public int getHoverTime() {
        return hoverTime;
    }

    public void setHoverTime(int hoverTime) {
        this.hoverTime = hoverTime;
    }
}